package com.zys.el.time.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zys.el.core.po.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("user_")
public class User extends BaseEntity {

    @TableField("name_")
    private String name;

    @TableField("image_path_")
    private String image;

    @TableField("create_time_")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @TableField("motto_")
    private String motto;

    @TableField("fans_menu_id_")
    private Long fansMenuId;

    @TableField("follow_menu_id_")
    private Long followMenuId;

    @TableField("field_menu_id_")
    private Long fieldMenuId;
}
